package fw_cron

import (
	"github.com/go-co-op/gocron"
	"time"
)

func CronInit() {
	s := gocron.NewScheduler(time.Local)
	s.SingletonModeAll() // 单例执行
	s.SetMaxConcurrentJobs(100, gocron.WaitMode)
	s.Every("20s").WaitForSchedule().Do(func() {
		//fw_event.EventChanDelivery(fw_event.EVENT_CMD_SYNC_ORDER_INFO, "", "", "")
	})
	s.StartAsync()
}
